<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page contentType="text/html;charset=utf-8"%>
<%@ page import="java.util.*"%>
<%@ page import="co.gov.medellin.ssti.sub.model.vo.AtributoVO"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="<%= request.getContextPath() + "/css/bloques.css" %>"
	rel="stylesheet" type="text/css">
<link href="<%= request.getContextPath() + "/css/table.css" %>"
	rel="stylesheet" type="text/css">


<title>Mostrar Atributos Especificos</title>

</head>
<body>

	<P></P>
	<P align="center" class="titulosenblanco">
		<STRONG>Atributos Espec&iacute;ficos para el Subprograma</STRONG>
	</P>

	<form name="frmAtributo" method="get">
		<logic:empty name="atributos">
			<p align="center" class="celdatabla">Lista no est&aacute; disponible</p>
		</logic:empty>
		<logic:notEmpty name="atributos">
			<table align="center" border="0">

				<logic:iterate id="atributo" name="atributos"
					type="co.gov.medellin.ssti.sub.model.vo.AtributoVO">

					<tr>
						<bean:define id="vigencia" name="atributo" property="vigencia"></bean:define>
						<%
                  String strVig = (String)vigencia;
                  if(strVig.equals("A"))
                  {
                %>
						<td><font class="celdatabla"><b><bean:write
										name="atributo" property="etiqueta" /></b></font></td>
						<%}else{%>
						<td><font class="celdatabla"><b><bean:write
										name="atributo" property="etiqueta" />(Inactivo)</b></font></td>
						<%}%>
						<td><font class="celdatabla"><b><bean:write
										name="atributo" property="orden" /></b></font></td>
					</tr>

				</logic:iterate>

			</table>
			<%session.removeAttribute("atributos");%>
		</logic:notEmpty>

		<br>
		<p class="titulosenblanco" align="center">Atributos que no han
			sido guardados</p>
		<table align="center">
			<%
   
   Object obcom = (Object)session.getAttribute("ListaAtributos");
   
   if(obcom != null)
   {
     List lListaAtributos = (List)session.getAttribute("ListaAtributos");
     int tama = lListaAtributos.size();
     AtributoVO objAtri = null;
     for(int i=0;i<tama;i++)
     {
        objAtri = (AtributoVO)lListaAtributos.get(i);
  %>
			<tr>
				<td class="celdatabla" align="center"><%=objAtri.getEtiqueta()%></td>
				<td class="celdatabla" align="center"><%=objAtri.getOrden()%></td>
			</tr>
			<% }
      //session.removeAttribute("ListaAtributos");
    }else{
  %>
			<p class="celdatabla" align="center">No hay atributos en el
				momento</p>
			<% }
     //session.removeAttribute("ListaAtributos");
  %>

		</table>
	</form>
</body>
</html>